package org.japo.java.gui.samples;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JOptionPane;

class GER extends MouseAdapter {

    private IGU igu;

    GER(IGU igu) {
        this.igu = igu;
    }

    @Override
    public void mouseClicked(MouseEvent me) {
        Object o = me.getSource();
        if (o.equals(igu.btnAceptar)) {
            igu.procesarIdentificacion();
        } else {
            JOptionPane.showMessageDialog(igu, "Proceso CANCELADO");
            igu.txfUser.setText("");
            igu.psfPass.setText("");
            igu.txfUser.requestFocus();
        }
    }
}
